import { pubRequire } from '@utils/appletPublic.js'
const baseUrl = '/backflow/kanban'
/*关键数据*/
export function getTopData(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/key-data`, params, callBack, errBack)
}
/*总分享统计*/
export function getShareLine(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/total-share`, params, callBack, errBack)
}
/*渠道分享统计*/
export function getShareBar(params, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/channel-share`,
    params,
    callBack,
    errBack
  )
}
/*总回流统计*/
export function getFlowLine(params, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/total-backflow`,
    params,
    callBack,
    errBack
  )
}
/*渠道回流统计*/
export function getFlowBar(params, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/channel-backflow`,
    params,
    callBack,
    errBack
  )
}
